package com.test;

import com.company.util.DaoMybatisPojoUtil;
import com.sniper.model.BaseEntity;
import com.sniper.mybatis.dao.BaseDao;
import com.sniper.mybatis.service.BaseService;

import java.io.FileNotFoundException;

public class Main {

    public static void main(String[] args) throws FileNotFoundException {

        new DaoMybatisPojoUtil()
                .rootDir("/Users/suzhen/approot/web/trade/trade-manager/trade-manager-web/target/classes/")
                .of(BaseEntity.class)
                .ofPackageDao("com.sniper.mybatis.dao.impl")
                .ofPackageService("com.sniper.mybatis.service.impl")
                .bindBaseDao(BaseDao.class)
                .bindBaseService(BaseService.class)
                .withXml()
                .withDao()
                .withService()
                .out("/Users/suzhen/approot/web/trade/trade-manager/trade-manager-web/MyBatisAuto/");
    }
}
